﻿@model GUI.Models.AdminModels.ArticleModelAdmin


<fieldset>
    <legend>ArticleModelAdmin</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.CreationDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CreationDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.UpdateDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.UpdateDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Title)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Title)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.IsActive)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.IsActive)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.ArticleContenent)
    </div>
    <div class="display-field">
       @Html.Raw(@Model.ArticleContenent)
    </div>

  
    
    <div class="display-label">
@*    <span>صورة كبيرة الحجم</span>  *@
                       @if (Model.ImageUrl != null)
                       {
                         
                      
                          <img src="@Url.Content("~/Images/ImageArticle/Full/" + @ViewBag.ImageUrl + ".JPEG")" alt="imge" style="width:350px; height:250px" />
                       }
                       else
                       {
                           <img src="~/Images/NoImage.png" />
                       }

    </div>
    <div>
       @* <span>صورة متوسطة الحجم</span>  *@
       @if (Model.ImageBytes != null)
          {                            
                   
                  
   <img src="data:image;base64,@System.Convert.ToBase64String(@ViewBag.imagebyte)" style="width:300px; height:220px" />
       }
       
        else
        {
           <img src="~/Images/NoImage.png" />

        }
                    
    </div>
  @*  <div class="display-label">
         @Html.DisplayNameFor(model => model.AuteurId)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AuteurId)
    </div>*@

    <div class="display-label">
         @Html.DisplayNameFor(model => model.AuteurId)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AuteurId)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>
